<?php

function init(){
	// add init-related things here.
	date_default_timezone_set('America/New_York');
}

function indent(){
	return sprintf('%'.VERBOSE_INDENT_WIDTH.'s','');
}

function init_message(){
	return "\n" . indent() . "== expsh\n\n";
}

function verbose_message($msg){
	return indent() . "$msg\n";
	ob_flush();
}

function log_message($msg){
	$file = fopen('./doc/messages.log','a');
	$time = strftime('%H:%M:%S');
	fwrite($file,"=$time= $msg\n");
	fclose($file);
}

function _exit($code){
	echo indent() . "== exiting [: $code]\n\n";
	exit($code);
}